# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-cerberus
_pkgname=Cerberus
pkgver=1.3.2
pkgrel=1
pkgdesc='Lightweight, extensible schema and data validation tool for Python dictionaries.'
url='https://pypi.org/project/Cerberus/#files'
arch=('any')
depends=('python2')
makedepends=('python2-setuptools')
license=('BSD')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('419319d6cbe0cffdbab3a06cb698beaa9e536c49aac7902afcd18dc73be90e7ff30bdc78d84104d5295ea2f80002e30d84cfb1222244384b6d4a97d7e1839ae5')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

